package cn.webrx;

import java.math.RoundingMode;
import java.text.NumberFormat;

public class Ex2 {
    public static void main(String[] args) {
        NumberFormat nf = NumberFormat.getNumberInstance();
        //RoundingMode.DOWN
        nf.setRoundingMode(RoundingMode.CEILING);
        nf.setMaximumFractionDigits(2);
        System.out.println(nf.format(1234.651));


    }


}
